package com.lvmama.rhino.pojo.base;

import java.io.Serializable;

/**
 * @Author:caoyong
 * @Description: 查询基类
 * @Date：2017/9/22
 */
public class BaseQuery implements Serializable {

    private static final long serialVersionUID = 1147911738396224465L;
    /**
     * 起始页
     */
    protected int currentPage = 1;
    /**
     * 每页数
     */
    protected int pageSize = 10;
    /**
     * 排序条件("field1 desc, field2 asc")
     */
    protected String orderBy;

    public int getCurrentPage() {
        return currentPage;
    }

    public void setCurrentPage(int currentPage) {
        this.currentPage = currentPage;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public String getOrderBy() {
        return orderBy;
    }

    public void setOrderBy(String orderBy) {
        this.orderBy = orderBy;
    }

    @Override
    public String toString() {
        return "BaseQuery{" +
                "currentPage=" + currentPage +
                ", pageSize=" + pageSize +
                ", orderBy='" + orderBy + '\'' +
                '}';
    }
}
